var mdViewer = {
    template: '#mdViewer',
    data() {
        return {
            mdName: '查看文章',
        }
    },
    
    mounted() {
        this.mdName = mdViewerData.name
        that = this
        setTimeout(function() {
            $("#overMd").empty();
            that.WatchMd('overMd', mdViewerData.data)
        }, 300)
    },
    methods: {
        onRefresh(done) {
            setTimeout(done, 1000)

        },
        back() {
            this.$router.go(-1)
        },
        WatchMd(id, markdown) {
            editormd.markdownToHTML(id, {
                htmlDecode: "style,script,iframe",
                markdown: markdown,
                emoji: true,
                taskList: true,
            });
        }
    }
}